<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/16
  Time: 15:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>choose标签</title>
</head>
<body>

    <%
        request.setAttribute("course","Java");
    %>

<c:choose>
    <c:when test="${course=='Java'}">
        学习Java
    </c:when>

    <c:when test="${course=='Andorid'}">
        学习安卓
    </c:when>
    <c:when test="${course=='c++'}">
        学习c++
    </c:when>
    <c:otherwise>
        学个屁
    </c:otherwise>
</c:choose>
</body>
</html>
